home *** CD-ROM | disk | FTP | other *** search
- #include "VCRplus.h"
- #define ScreenDepth(gdh) ((*((*gdh)->gdPMap))->pixelSize)
- #define dragscreenmargin 4 /*for dragging windows, leave this many pixels on all sides*/
-
- long CODE_VALUE;
-
-
- DialogPtr theDialog;
- unsigned long myFreeMem;
- unsigned long start[480], leng[480] ;
- vcrInfo myVCR;
-
- void main(void)
- {
- EventRecord myEvent;
- OSErr myErr;
- Handle myMBar;
- MCTableHandle myMenuColors;
-
- // Do all the usual initialization schtick.
-
- initApp();
- initArrays();
-
- myMenuColors = GetMCInfo();
- myMBar = GetNewMBar(1);
- SetMenuBar(myMBar);
- AddResMenu(GetMHandle(appleID),'DRVR');
- DrawMenuBar();
- SetMCInfo(myMenuColors);
-
- theDialog = GetNewDialog(130, 0L, (WindowPtr) -1L);
- SetPort((CGrafPtr)theDialog);
-
- myErr = SetDialogDefaultItem(theDialog, dlgQUIT);
-
- SetUserItem(dlgOUTLINER,outLineItem);
- putDateInDlg();
-
- SetWTitle((WindowPtr)theDialog, "\pVCR Plus Encoder / Decoder");
-
- DrawDialog(theDialog);
- ShowWindow((WindowPtr)theDialog);
-
- myFreeMem = MaxBlock();
-
- while (TRUE)
- {
- if(WaitNextEvent(everyEvent,&myEvent, 10L,0L))
- {
- if ( IsDialogEvent( &myEvent) )
- doDlgEvt( &myEvent );
-
- switch ( myEvent.what )
- {
- case mouseDown:
- handlemouse (myEvent);
- break;
- }
-
- } // WaitNextEvent
- TEIdle(((DialogPeek)theDialog)->textH);
- }
- }
-
-